<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsps/common/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>基金信息修改</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css"
	href='<c:url value="/css/application.css"/>'>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/css/list.css"/>'>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/css/form.css"/>'>

<script type="text/javascript">
		function back(fundno){
			location.href = 'fundMgr?act=loadPagedFunds&fund_no='+fundno;
		}	
</script>
<style type="text/css">
	body {
			background:url(pics/bg.jpg);
			-webkit-background-size: cover;
			-moz-background-size: cover;
			background-size: cover;
		}
</style>
</head>

<body>
	<div id="wrapper">
		<div id="f_title">基金信息修改</div>
		<form action="<c:url value="/fundMgr?act=update"/>" method="post">
			<input type = "hidden" name="fund_no" value="${fund.fundNo}">
			<input type = "hidden" name="create_date" value="${fund.createDate}">
			<input type = "hidden" name="oper_code" value="${fund.operCode}">
			<div class="f_row">
				<span>基金编号：</span><span>${fund.fundNo}</span>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span>操作员编号：</span><span>${fund.operCode}</span>
			</div>
			<div class="f_row">
				<span>创建日期：</span><span>${fund.createDate}</span>
			</div>
			<br/>
			<div class="f_row">
				<span>基金名称:</span> <input type="text" name="fund_name" size="20"
					value="${fund.fundName}">
			</div>
			<div class="f_row">
				<span>基金单价:</span> <input type="text" name="fund_price" size="20"
					value="${fund.fundPrice}">
			</div>
			<div class="f_row">
				<span>描述说明:</span>
				<textarea rows="3" name="fund_desc">${fund.fundDescribe}</textarea>
			</div>
			<div class="f_row">
				<span>基金状态:</span> <select name="fund_status">
					<option value="O" <c:if test="${ fund.fundStatus =='O'}">selected</c:if>>开放</option>
					<option value="C" <c:if test="${ fund.fundStatus =='C'}">selected</c:if>>封闭</option>
				</select>
			</div>
			<div class="f_row">
				<br />
				 <input type="submit" value="修改" style="height=25px;width=50px">
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			<button style="height=25px;width=50px" onclick="back(${fund.fundNo});">返回</button>
			</div>
		</form>
	</div>

	<c:if test="${not empty err}">
		<script type="text/javascript">
			alert('${err}');
		</script>
	</c:if>
	
</body>
</html>
